using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.BLL;
using emp.Model.SysManage;

public partial class crm_individuals_DataPrepareLoad : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.Page.IsPostBack)
        {
            try
            {
                string cur_page = Request["cur_page"].ToString();
                int uid = Convert.ToInt32(Request["lbr_uid"].ToString());
                int validcount = Convert.ToInt32(Request["validnum"].ToString());
                Individuals ii = new Individuals();
                int updateUser=0;
                try
                {
                    if (HttpContext.Current.Session["USER_KEY"] != null)
                    {
                        UserInfo myUserInfo = (UserInfo)HttpContext.Current.Session["USER_KEY"];
                        updateUser = myUserInfo.UserID;
                    }
                   
                }
                catch(Exception e1){
                    Response.Redirect("/logon.aspx");
                }
              ii.UpdataDataPrepareLoad(uid, validcount, updateUser);
               // ii.Insert_Investiture(uid);

                Response.Redirect("DataPrepareList.aspx?cur_page=" + cur_page);
            }
            catch { }
          
        }
    }
}
